﻿@{
    ViewBag.Title = "添加";
    Layout = "../Shared/_Layout.cshtml";
}
@using mscook.mvc;
@model mscook.core.domain.AboutUs

@section JavaScript
{
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.validate.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.validate.unobtrusive.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.unobtrusive-ajax.js")"></script>

}

<div class="row-fluid sortable">
    <div class="box span12">
        <div class="box-header well">
            <h2><i class="icon-edit"></i></h2>

        </div>
        <div class="box-content">
            @using (Html.BeginForm("Add", "AboutUs", FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal" }))
            {
                <fieldset>
                    <legend>首页底部链接添加</legend>
                    <div class="control-group">
                        <label class="control-label">名称</label>
                        <div class="controls">
                            <div class="input-prepend">
                                @Html.TextBoxFor(aboutUs => aboutUs.Name, new { size = "16" })
                            </div>
                            @Html.ValidationMessageFor(aboutUs => aboutUs.Name)
                        </div>

                    </div>
                    <div class="control-group">
                        <label class="control-label">内容</label>
                        <div class="controls">
                            <div class="input-prepend">
                                @Html.TextAreaFor(aboutUs => aboutUs.Content, 10, 20, new { size = "16", @class = "cleditor" })
                            </div>
                            @Html.ValidationMessageFor(aboutUs => aboutUs.Content)
                        </div>

                    </div>
                    <div class="control-group">
                        <label class="control-label">位置</label>
                        <div class="controls">
                            <div class="input-prepend">
                                @Html.TextBoxFor(aboutUs => aboutUs.Sort, new { size = "5" })
                            </div>
                            @Html.ValidationMessageFor(aboutUs => aboutUs.Sort)
                        </div>

                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary btn-large">保存</button>
                        <button class="btn btn-large">Cancel</button>
                    </div>
                </fieldset>
            }
        </div>
    </div>
    <!--/span-->

</div>
